Little addition to the modifiers example - Federico
authorFederico Mena Quintero <federico@src.gnome.org>
Mon, 16 Feb 2004 18:22:24 +0000 (18:22 +0000)
committerFederico Mena Quintero <federico@src.gnome.org>
Mon, 16 Feb 2004 18:22:24 +0000 (18:22 +0000)
docs/reference/gdk/tmpl/windows.sgml

index de2d8aeb570c2c7ea562d6e2d1e2cc5c943b3405..c2df7e5ea0465e3a13010e8979f9513391fa37f6 100644 (file)
@@ -1137,7 +1137,10 @@ Like the X Window System, GDK supports 8 modifier keys and 5 mouse buttons.
       The following code shows how you should use GDK_MODIFIER_MASK to
       test for
       <keycombo><keycap>Control</keycap><keycap>F10</keycap></keycombo>
-      being pressed.
+      being pressed.  If you do something like testing for
+      <literal>event-&gt;state == GDK_CONTROL_MASK</literal>, your
+      program will not work correctly if some other modifier is
+      pressed, such as <keycap>NumLock</keycap>.
     </para>
 
     <programlisting>